# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id$

PortSystem 1.0

name				stonx
version				0.6.7.6
revision			3
platforms			darwin
categories			emulators
maintainers			krischik@me.com
description			Atari ST emulator
long_description	An Atari ST emulator for Unix/X and SVGAlib 

homepage			http://stonx.sourceforge.net
master_sites		sourceforge

set prog			STonX-${version}.tar.gz

distfiles			${prog}

extract.only		${prog}

checksums			${prog}

depends_lib			

configure.args		--enable-svga							\
					--enable-monitor						\
					--mandir='\${prefix}/share/man'			\
					--datadir='\${prefix}/share'			\
					--sysconfdir='\${prefix}/etc/${name}'

configure.cxxflags-append   "-I${prefix}/include"

# configure.env-append    CFLAGS="-O2 -I/opt/local/include -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE"

#worksrcdir			${name}-${version}/src

#post-extract {
    #system "unzip -q ${distpath}/${rom} -d ${workpath}/xf25"
#}

#post-destroot {
	#xinstall -o root -g admin -m 775 -d ${destroot}${prefix}/share/atari800
	#xinstall -o root -g admin -m 775 -d ${destroot}/Applications/MacPorts

	#xinstall -o root -g admin -m 444							\
		#-W ${workpath}/xf25										\
		#ATARIBAS.ROM											\
		#ATARIOSB.ROM											\
		#ATARIXL.ROM												\
		#DEMOS1.XFD												\
		#DEMOS2.XFD												\
		#DOS25.XFD												\
		#MYDOS45D.ATR											\
		#${destroot}${prefix}/share/atari800

	#xinstall -o root -g Admin -m 755							\
		#-W ${filespath}											\
		#Atari320XE.command										\
		#${destroot}/Applications/MacPorts/Atari320XE.command
#}

############################################################ {{{1 ###########
# vim: set nowrap tabstop=4 shiftwidth=4 softtabstop=4 noexpandtab :
# vim: set textwidth=0 filetype=tcl foldmethod=marker nospell :
